<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>

<body>

</body>
<script type="text/javascript">
    // 输入一个数字，判断是否能被3整除并且能被5整除
    var num = prompt("请输入你要判断的数字：");
    if (num % 3 == 0 && num % 5 == 0) {
        console.log('满足')
    }
</script>

</html>